<?php
namespace Imi\Process;

/**
 * 进程池进程实现接口
 */
interface IPoolProcess
{
	/**
	 * 进程执行
	 *
	 * @param \Swoole\Process\Pool $pool
	 * @param integer $workerId
	 * @param string $name
	 * @param int $workerNum
	 * @param array $args
	 * @param int $ipcType
	 * @param string $msgQueueKey
	 * @return void
	 */
	public function run(\Swoole\Process\Pool $pool, int $workerId, $name, $workerNum, $args, $ipcType, $msgQueueKey);
}